package Controlador;

import java.util.ArrayList;
import java.util.List;

import Utils.TransformaDoubleEmDecimalFormat;

public abstract class ConfiguraDadosExibidosTabela {

	public static List<String[]> totaisComissaoVenda = new ArrayList<String[]>();
	
	public static void configuraDadosExibidos(String nomeVendedor, double valorComissao, double valorVenda){
		String[] arr = new String[3];
		arr[0] = nomeVendedor;
		arr[1] = String.valueOf(TransformaDoubleEmDecimalFormat.transformaDoubleEmDecimalFormat(valorVenda)).toString();
		arr[2] = String.valueOf(TransformaDoubleEmDecimalFormat.transformaDoubleEmDecimalFormat(valorComissao)).toString();
		totaisComissaoVenda.add(arr);
	}
}
